import request from '@/utils/request'

// 查询客户图号列表
export function listClientNumber(query) {
  return request({
    url: '/xs/clientNumber/list',
    method: 'get',
    params: query
  })
}

// 查询客户图号详细
export function getClientNumber(id) {
  return request({
    url: '/xs/clientNumber/' + id,
    method: 'get'
  })
}

// 新增客户图号
export function addClientNumber(data) {
  return request({
    url: '/xs/clientNumber',
    method: 'post',
    data: data
  })
}

// 修改客户图号
export function updateClientNumber(data) {
  return request({
    url: '/xs/clientNumber',
    method: 'put',
    data: data
  })
}

// 删除客户图号
export function delClientNumber(id) {
  return request({
    url: '/xs/clientNumber/' + id,
    method: 'delete'
  })
}
